package com.wwz.feign;

import com.wwz.pojo.Personnel;
import com.wwz.pojo.query.PersonnelQuery;
import com.wwz.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

@FeignClient("manage")
public interface PersonnelClients {

    @GetMapping("/manage/personnel/toPage")
    Result toPage(@SpringQueryMap PersonnelQuery query);

    @PostMapping("/manage/personnel/addOrUpdate")
    Result addOrUpdate(Personnel personnel);

    @DeleteMapping("/manage/personnel/delete/{id}")
    Result delete(@PathVariable("id") String id);
}
